<template>
  <div>
    <el-container>
      <el-header>
        <Header />
      </el-header>
      <el-container>
        <el-aside width='auto'>
          <Menu />
        </el-aside>
        <el-main style="overflow-y:scroll">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import Menu from "@/components/Menu.vue";
import Chart from "@/components/Chart.vue";

export default {
  components: {
    Header,
    Menu,
    Chart
  }
};

</script>

<style scoped>
.el-header,
.el-footer {
  background-color: #d4e4f8;
  color: #333;
  text-align: center;
  line-height: 60px;
  position: relative;
  width: 100%;
  height: 60px;
}

.el-aside {
  background-color: #3a4267;
  color: #333;
  text-align: left;
  line-height: 200px;
  overflow-y: scroll;
  display: block;
  position: absolute;
  top: 60px;
  bottom: 0;
}

.el-main {
  background-color: #f2f5f8;
  color: #333;
  text-align: center;
  padding: 0;
  position: absolute;
  left: 200px;
  right: 0;
  top: 60px;
  bottom: 0;
  overflow-y: scroll;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
